/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package raccoon.suvisa.logica.serviciosweb.consumidos.beans;

//import javax.xml.ws.WebServiceRef;
//import pkg.ws.BancoWSService;
//import pkg.ws.PublicWebServiceService;
import raccoon.suvisa.logica.serviciosweb.consumidos.*;
import javax.ejb.Stateless;

/**
 *
 * @author Laura
 */
@Stateless
public class WSgenericoBean implements WSgenericoRemote {

//@WebServiceRef(wsdlLocation = "META-INF/wsdl/10.5.2.144_8080/PublicWebServiceService/PublicWebService.wsdl")
//private PublicWebServiceService service_1;
//@WebServiceRef(wsdlLocation = "META-INF/wsdl/10.5.2.159_8080/bancoWSService/bancoWS.wsdl")
//private BancoWSService service;

    @Override
    public boolean infomarBanco(String cuenta, String fecha, String idCliente,
            String idTarjeta, String idTransaccion, String monto, int tipo) {

        boolean result = false;
        try { // Call Web Service Operation
//            pkg.ws.BancoWS port = service.getBancoWSPort();
//            // TODO process result here
//            result = port.informarBanco(cuenta, tipo, fecha, idCliente, idTarjeta, idTransaccion, monto);
//            System.out.println("Result = " + result);
        } catch (Exception ex) {
            // TODO handle custom exceptions here
        }
        return result;
    }

    public boolean serviciosPublicos(String cuenta, String fecha,
            String idCliente, String idTarjeta, String idTransaccion, String monto) {
        boolean result = false;
        try { // Call Web Service Operation
            //pkg.ws.PublicWebService port = service_1.getPublicWebServicePort();
            // TODO initialize WS operation arguments here

            // TODO process result here
            //result = port.informarSerPublicos(cuenta, fecha, idCliente, idTarjeta, idTransaccion, monto);
            System.out.println("Result = " + result);
        } catch (Exception ex) {
            // TODO handle custom exceptions here
        }
        return false;
    }
}
